home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14319 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: ix.netcom.com!news
  2. From: jlilley@ix.netcom.com (John Lilley)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Linker Error: Segment xx exceeds 64k?
  5. Date: 29 Mar 1996 16:41:10 GMT
  6. Organization: Netcom
  7. Message-ID: <4jh3r6$scq@dfw-ixnews6.ix.netcom.com>
  8. References: <315a6e3a.4050698@netnews.ntu.edu.tw>
  9. NNTP-Posting-Host: den-co11-03.ix.netcom.com
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=US-ASCII
  12. X-NETCOM-Date: Fri Mar 29 10:41:10 AM CST 1996
  13. X-Newsreader: WinVN 0.99.7
  14.  
  15. In article <315a6e3a.4050698@netnews.ntu.edu.tw>, ben@water.ee.nsysu.edu.tw says...
  16. >Yes, that's exactly what I got from my Borland C++ 4.53 compiler (Linker Error:
  17. >Segment xx exceeds 64k). I was trying to rebuild a CodeGuard-enabled target with
  18. >EasyWin mode. The same rebuilding process went just fine with Win32 console
  19. >mode. Any work-around? Thanks in advance.
  20.  
  21. I think that EasyWin mode creates a 16-bit application, which means that the 64k data 
  22. segment limit is in effect.  You can try:
  23.  
  24. 1) Setting the "far data threshold" option on the compiler to some small 
  25.    value (like 100).
  26.  
  27. 2) Finding any large arrays:
  28.        char c[10000];
  29.    and making them far:
  30.        char far c[10000];
  31.  
  32. 3) Reducing the stack size in the DEF file (warning! stack overflow potential!).
  33.  
  34. john lilley
  35.  
  36.